<?php
/**
 * User: hjd-yao
 * Date: 2018/11/26
 * Time: 12:24
 */
Route::match(['post','get'],'login')->uses('LoginController@login')->name('f_Login_login');
Route::match(['post','get'],'register')->uses('LoginController@register')->name('f_Login_register');
Route::match(['post','get'],'forgot-pwd')->uses('LoginController@retrievePwd')->name('f_Login_retrievePwd');

Route::match(['post','get'],'verify_login')->uses('LoginController@adminLogin')->name('f_Admin_login');

Route::post('get-code/{type?}')->uses('LoginController@sendPhoneCode')->name('f_Login_sendPhoneCode')->where('type','reg|code');
Route::get('logout')->middleware('CheckUserLogin')->uses('LoginController@logout')->name('f_Login_logout');

Route::get('aliPay_ntify')->uses('LoginController@aliPayNtify')->name('aliPay-ntify');

Route::get('wechat_ntify')->uses('LoginController@wechatNtify')->name('wechat-ntify');

Route::get('area')->uses('HomeController@getArea')->name('f_Home_getArea');
